{{template "admin/public/head.html" .}}
<section>
	<aside>
		{{template "admin/public/nav.html" .}}
	</aside>
	<article>
		<div class="top-title">
			<dl>
				<dt><h1>{{.title}}</h1></dt>
				<dd>&nbsp;</dd>
				<dd><a href="user_chat.html"><i class="iconfont">&#xe649;</i>帮助文档</a></dd>
			</dl>
		</div>

		<div class="content">
			<form class="form">
				<table class="table1">
					<!-- 控制表格宽度  横向合并 colspan="1"  竖向合并 rowspan="3" -->
					<thead><th width="8%"></th><th width="17%"></th><th width="8%"></th><th width="17%"></th><th width="8%"></th><th width="17%"></th><th width="8%"></th><th width="17%"></th></thead>
					<tr>
						<td class="genre">名称</td>
						<td colspan="3">{{.info.name}}</td>
						<td class="genre">所属用户id</td>
						<td colspan="3"><a href="/admin/member/content?id={{.info.uid}}">{{.info.monicker}}</a>
						</td>
					</tr>
					<tr>
						<td class="genre">所属类别</td>
						<td colspan="7">{{range .info.types}}
							{{.name}}、
							{{end}}
					</tr>
					<tr>
						<td class="genre">排序</td>
						<td colspan="3">{{.info.sort}}</td>
						<td class="genre">类别</td>
						<td colspan="3">{{if eq .info.style "0"}}工厂店铺{{else}}经销商店铺{{end}}</td>
					</tr>
					<tr>
						<td class="genre">简称</td>
						<td colspan="3">{{.info.sname}}</td>
						<td class="genre">联系人</td>
						<td colspan="3">{{.info.person}}</td>
					</tr>
					<tr>
						<td class="genre">用户名</td>
						<td colspan="3">{{.info.username}}</td>
						<td class="genre">密码</td>
						<td colspan="3">{{.info.password}}</td>
					</tr>
					<tr>
						<td class="genre">税点</td>
						<td colspan="2">
							{{.info.taxpoint}}
						</td>
						<td class="genre">审查</td>
						<td colspan="2">
							{{if .info}}{{if eq .info.censoring "0"}}未审查{{else}}已审查{{end}}{{end}}
						</td>
						<td class="genre">推荐</td>
						<td colspan="2">
							{{if .info}}{{if eq .info.recommend "0"}}未推荐{{else}}已推荐{{end}}{{end}}
						</td>
						<td class="genre">成立日期</td>
						<td colspan="2">
							{{.info.update}}
						</td>
					</tr>
					
					<tr>
						<td class="genre">图片</td>
						<td colspan="7">
							<div class="thumbnail">
								<dl><dt><img src="{{if .info.pathname}}{{.info.pathname}}{{else}}/static/img/admin/uppic.png{{end}}" class="uppic"></dt><dd>logo</dd></dl>
								{{range .companyimgs}}
								<dl><dt><img src="{{.pathname}}" class="uppic"></dt><dd>轮播图</dd></dl>
								{{end}}
							</div>
						</td>
					</tr>
					<tr>
						<td class="genre">背景图</td>
						<td colspan="7">
							<div class="thumbnail">
								{{if .info.gzhpath}}
								<dl><dt><img src="{{.info.gzhpath}}" class="uppic"></dt><dd>公众号背景图</dd></dl>
								{{end}}
								{{if .info.apppath}}
								<dl><dt><img src="{{.info.apppath}}" class="uppic"></dt><dd>APP背景图</dd></dl>
								{{end}}
								{{if .info.webpath}}
								<dl><dt><img src="{{.info.webpath}}" class="uppic"></dt><dd>网页背景图</dd></dl>
								{{end}}
								{{if .info.xapppath}}
								<dl><dt><img src="{{.info.xapppath}}" class="uppic"></dt><dd>小程序背景图</dd></dl>
								{{end}}
							</div>
						</td>
					</tr>
					<tr>
						<td class="genre">手机号码</td>
						<td>{{.info.mobile}}</td>
						<td class="genre">电话号码</td>
						<td>{{.info.tel}}</td>
						<td class="genre">传真</td>
						<td>{{.info.fax}}</td>
						<td class="genre">腾讯QQ</td>
						<td>{{.info.qq}}</td>
					</tr>
					<tr>
						<td class="genre">微信号</td>
						<td>{{.info.wechat}}</td>
						<td class="genre">邮编号码</td>
						<td>{{.info.postcode}}</td>
						<td class="genre">网址</td>
						<td>{{.info.url}}</td>
						<td class="genre">公司人数</td>
						<td>{{.info.number}}</td>
					</tr>
					<tr>
						<td colspan="8">
							<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=pZNN8yCbWXBezCgGpnKMQi283dFLAVGO"></script>
							<div class="map">
								<div class="mapcontent" id="allmap"></div>
							</div>
							
						</td>
					</tr>
					<tr>
						<td class="genre">地址</td>
						<td colspan="3">
							{{.info.address}}
						</td>
						<td class="genre">坐标</td>
						<td colspan="3">
							{{.info.coordinate}}
						</td>
					</tr>
					<tr>
						<td class="genre">公司介绍</td>
						<td colspan="7">
							{{.info.profile}}
						</td>
					</tr>
				<input type="hidden" name="id" value="{{.info.id}}">
			</form>
			</table>
		</div>
	</article>
</section>

<footer><!-- 系统监控内容 --></footer>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/jquery.jedate.min.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/toast.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/uppic.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/xcConfirm.js"></script>
<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/admin/js/app.js"></script>
<script>
    // 百度地图API功能
    var map = new BMap.Map("allmap");
    var coor=[121.363158,28.5921]
    {{if .info}}
    var coors={{.info.coordinate}}
    coors=coors.split(",")
    coor[0]=coors[0]
    coor[1]=coors[1]
    {{end}}
    var point = new BMap.Point(coor[0],coor[1]);
    map.centerAndZoom(point, 15);
    var marker = new BMap.Marker(point);  // 创建标注
    map.addOverlay(marker);               // 将标注添加到地图中
    marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
    var local = new BMap.LocalSearch(map, {
        renderOptions:{map: map}
    });
</script>
</body>
</html>
